<?php $title_lang= field('title'); ?>

  <?php if(isset($submenu)) { ?>
  <!-- page detail menu left -->

    <?php $count = 0; ?>
    <?php foreach ($submenu as $sub) { ?>
      <div class="title"><a href="<?=PATH_URL_LANG.$sub->link?>" class="<?php if($this->uri->segment(3) == $sub->slug) { echo 'active';} ?>"><?=$sub->$title_lang?></a></div>
      <?php if($count < 1) { ?>
      <?php } $count++; ?>
    <?php  } ?>
  <?php }else if($this->uri->segment(3) != 'register'){ ?>
    <!-- users menu left -->
    <div class="title"><a href="<?=PATH_URL_LANG.'users'?>" class="<?php if($this->uri->segment(3) == 'download') { echo "active";} ?>"><img src="<?=PATH_URL?>static/images/menu/text_down.png" alt="" class="png" /></a></div>

    <div class="title"><a href="#" class="<?php if($this->uri->segment(3) == 'download') { echo "active";} ?>"><img src="<?=PATH_URL?>static/images/menu/text_last_news.png" alt="" class="png" /></a></div>
    <div class="title"><a href="<?=PATH_URL_LANG.'contact'?>"  class="<?php if($this->uri->segment(3) == 'download') { echo "active";} ?>"><img src="<?=PATH_URL?>static/images/menu/text_contact_us.png" alt="" class="png" /></a></div>
  <?php } ?>

